import { FILTER_ACTIVE } from "../constans/filter";

export default function filter(state = 'all',action ){
  if(action.type === FILTER_ACTIVE){
    return action.active
  }
  return state
}